/**
 * Created with IntelliJ IDEA.
 * Description:水仙花数
 * User: zjc
 * Date: 2022-04-26
 * Time: 18:17
 */
public class project {
    public static void main(String[] args) {
        int a,b,c;
        for (int i = 100;i  < 1000; i++) {
           a = i / 100;
           b = i / 10 % 10;
           c= i % 10;
           if ((a * a * a) + (b * b * b) + (c * c * c) == i){
               System.out.println(i);
           }
        }
    }
}
